<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <!-- 2014年到2050年哪年一月一日是星期日 -->
    <script>
      for (let i = 2014; i <= 2050; i++) {
        let date = new Date(i, 1).getDay()
        if (date === 0) {
          console.log(i)
        }
      }
    </script>
  </body>
</html>
